package com.dnw.httpUtil;

import java.util.Map;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Url;


/**
 * Created by DiangoJ.
 */

public interface  ServiceRetrofit {
    @FormUrlEncoded
    @POST
    Call<ResponseBody> mMapUrl(@FieldMap Map<String, String> mMap, @Url String url);



    @FormUrlEncoded
    @POST("{path}")
    Call<ResponseBody> mMap(@Path("path") String path,
                            @FieldMap Map<String, String> mMap);

    @FormUrlEncoded
    @POST("register/existMobilePhone.do")
    Call<ResponseBody> mMapDemo(@FieldMap Map<String, String> mMap);

    @FormUrlEncoded
    @POST("register/existMobilePhone.do")
    Call<ResponseBody> existMobilePhone(
            @Field("mobilephone") String mobilephone, @Field("version") String version, @Field("channle") String channle);
}
